package org.deng.learn.designpattern.templatemethod;

/**
 * @author DengLibin
 * @Description
 * @Date 2019/2/14 0014 14:16
 */
public abstract class Library {
    private void step1(){
        System.out.println("步骤1");
    }
    private void step2(){
        System.out.println("步骤2");
    }
    protected abstract  void step3();

    protected  abstract  void step4();
    private void step5(){
        System.out.println("步骤5");
    }
    public void run(){
        step1();
        step2();
        step3();
        step4();
        step5();
    }
}
